﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200125F RID: 4703
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SubmitEmotionItemScRsp : IMessage<SubmitEmotionItemScRsp>, IMessage, IEquatable<SubmitEmotionItemScRsp>, IDeepCloneable<SubmitEmotionItemScRsp>, IBufferMessage
	{
		// Token: 0x17003BA8 RID: 15272
		// (get) Token: 0x0600D2FA RID: 54010 RVA: 0x00238838 File Offset: 0x00236A38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SubmitEmotionItemScRsp> Parser
		{
			get
			{
				return SubmitEmotionItemScRsp._parser;
			}
		}

		// Token: 0x17003BA9 RID: 15273
		// (get) Token: 0x0600D2FB RID: 54011 RVA: 0x0023883F File Offset: 0x00236A3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SubmitEmotionItemScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003BAA RID: 15274
		// (get) Token: 0x0600D2FC RID: 54012 RVA: 0x00238851 File Offset: 0x00236A51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SubmitEmotionItemScRsp.Descriptor;
			}
		}

		// Token: 0x0600D2FD RID: 54013 RVA: 0x00238858 File Offset: 0x00236A58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubmitEmotionItemScRsp()
		{
		}

		// Token: 0x0600D2FE RID: 54014 RVA: 0x00238860 File Offset: 0x00236A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubmitEmotionItemScRsp(SubmitEmotionItemScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.scriptId_ = other.scriptId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D2FF RID: 54015 RVA: 0x00238891 File Offset: 0x00236A91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubmitEmotionItemScRsp Clone()
		{
			return new SubmitEmotionItemScRsp(this);
		}

		// Token: 0x17003BAB RID: 15275
		// (get) Token: 0x0600D300 RID: 54016 RVA: 0x00238899 File Offset: 0x00236A99
		// (set) Token: 0x0600D301 RID: 54017 RVA: 0x002388A1 File Offset: 0x00236AA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003BAC RID: 15276
		// (get) Token: 0x0600D302 RID: 54018 RVA: 0x002388AA File Offset: 0x00236AAA
		// (set) Token: 0x0600D303 RID: 54019 RVA: 0x002388B2 File Offset: 0x00236AB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScriptId
		{
			get
			{
				return this.scriptId_;
			}
			set
			{
				this.scriptId_ = value;
			}
		}

		// Token: 0x0600D304 RID: 54020 RVA: 0x002388BB File Offset: 0x00236ABB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SubmitEmotionItemScRsp);
		}

		// Token: 0x0600D305 RID: 54021 RVA: 0x002388C9 File Offset: 0x00236AC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SubmitEmotionItemScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.ScriptId == other.ScriptId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D306 RID: 54022 RVA: 0x00238908 File Offset: 0x00236B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ScriptId != 0U)
			{
				num ^= this.ScriptId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D307 RID: 54023 RVA: 0x00238960 File Offset: 0x00236B60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D308 RID: 54024 RVA: 0x00238968 File Offset: 0x00236B68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D309 RID: 54025 RVA: 0x00238974 File Offset: 0x00236B74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ScriptId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ScriptId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D30A RID: 54026 RVA: 0x002389D0 File Offset: 0x00236BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ScriptId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScriptId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D30B RID: 54027 RVA: 0x00238A28 File Offset: 0x00236C28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SubmitEmotionItemScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ScriptId != 0U)
			{
				this.ScriptId = other.ScriptId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D30C RID: 54028 RVA: 0x00238A78 File Offset: 0x00236C78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D30D RID: 54029 RVA: 0x00238A84 File Offset: 0x00236C84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.ScriptId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005490 RID: 21648
		private static readonly MessageParser<SubmitEmotionItemScRsp> _parser = new MessageParser<SubmitEmotionItemScRsp>(() => new SubmitEmotionItemScRsp());

		// Token: 0x04005491 RID: 21649
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005492 RID: 21650
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04005493 RID: 21651
		private uint retcode_;

		// Token: 0x04005494 RID: 21652
		public const int ScriptIdFieldNumber = 4;

		// Token: 0x04005495 RID: 21653
		private uint scriptId_;
	}
}
